Filter hook 'gettext_with_context_{$domain}'
in WP Core File wp-includes/l10n.php at line 288
Description
Filters text with its translation based on context information for a domain. The dynamic portion of the hook name, `$domain`, refers to the text domain.
Occurrences
Filename |
Line Number |
wp-includes/l10n.php |
288 |
Parameters
Type |
Name |
Description |
string |
$translation |
Translated text. |
string |
$text |
Text to translate. |
string |
$context |
Context information for the translators. |
string |
$domain |
Text domain. Unique identifier for retrieving translated strings. |
PHP Doc
/**
* Filters text with its translation based on context information for a domain.
*
* The dynamic portion of the hook name, `$domain`, refers to the text domain.
*
* @since 5.5.0
*
* @param string $translation Translated text.
* @param string $text Text to translate.
* @param string $context Context information for the translators.
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
*/